package com.my.ecommercesystem.service;



import com.my.ecommercesystem.entity.User;
import com.my.ecommercesystem.entity.UserAddress;

import java.util.List;

public interface UserService {


    List<User> getAllUser();

    User getUserById(Integer id);

    boolean editUser(User user);

    List<UserAddress> getAddressByUserId(Integer id);

    boolean editAddressById(UserAddress address);

    boolean removeAddressById(Integer address_id);

    List<UserAddress> getDefaultAddressByUserId(Integer user_id);

    boolean addUserAddress(UserAddress userAddress);

    User login(String user_pwd,String user_phone);

    boolean insertUser(User user);

    User queryUserByPhone(String user_phone);
}
